package com.springcloud.stock.param;

import com.springcloud.commom.param.BaseParam;
import lombok.Data;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.NotBlank;


/**
* 商品表参数类
 *
 * @author hzl
 * @date 2024-07-26 10:42:06
*/
@Data
public class ProductParam extends BaseParam {

    /**
     * 
     */
    @NotNull(message = "不能为空，请检查id参数", groups = {edit.class, delete.class, detail.class})
    private String id;

    /**
     * 商品名称
     */
    @NotBlank(message = "商品名称不能为空，请检查name参数", groups = {add.class, edit.class})
    private String name;

    /**
     * 商品数量
     */
    @NotBlank(message = "商品数量不能为空，请检查productCount参数", groups = {add.class, edit.class})
    private Integer productCount;

}
